<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$return=array();
if(!empty($_SESSION['openid'])){
	$openid = $_SESSION['openid'];
}else{
	exi('获取粉丝信息失败，请在微信中访问！','error');
}
$kf_account = $_RQ['kf_account'];
$content = cfc('kefu')->setkfsession($kf_account,$openid);

if($content['errcode'] != 0){
	exi(cfc('kefu')->error_code($content['errcode']),'error','jy_kefu/home/');
}
exi('获取会话成功，请到微信公众号端发送消息，进行对话！','','jy_kefu/home/');